package com.example.coupon.service.impl;

import com.example.coupon.entity.SysUser;
import com.example.coupon.mapper.SysUserMapper;
import com.example.coupon.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: WanChaoChao
 * @Date: 2022/6/20 15:53:33
 * @Description:
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser login(SysUser sysUser) {
        return sysUserMapper.login(sysUser.getUserName(), sysUser.getPassword());
    }

}
